<template>
    <div>
        <a-spin :tip="loadingText" :spinning="loading">
            <a-config-provider :locale="locale">
                <div id="app">
                    <router-view/>
                </div>
            </a-config-provider>
        </a-spin>
    </div>
</template>

<script>
    import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
    import Device from "@/core/mixin/Device";
    import Setting from "@/core/mixin/Setting";
    import BaseVue from "@/core/mixin/BaseVue";
    import {SettingsModule} from "@/core/store/modules/settings";

    export default {
        mixins: [Device, Setting, BaseVue],
        data() {
            return {
                locale: zhCN
            }
        },
        computed: {
            loading() {
                return SettingsModule.loading;
            },
            loadingText() {
                return SettingsModule.loadingText;
            }
        }
    }
</script>
<style>

</style>

